/**
 * Created by admin on 2018/12/24.
 */
//route 的config配置 和 不需要 在页面中请求的配置
//键为页面的配置 meta
const pageConfig = {
    login: {
        keepAlive: false,
        isBack: false,
        header: 'back',
        title: '登陆',
        login:'no',
        url: {
            login: {
                login: 'no',
                url: 'user/login'
            }
        }
    },
    register: {
        keepAlive: false,
        isBack: false,
        header: 'back',
        title: '注册',
        login:'no',
        url: {
            register: {
                login: 'no',
                url: 'user/register'
            }
        }
    },
    my: {
        keepAlive: true,
        isBack: false,
        header: 'home',
        title: '个人中心',
        login:'yes',
        url: {

        }
    },
    resetpw: {
        keepAlive: false,
        isBack: false,
        header: 'back',
        title: '修改密码',
        login:'yes',
        url: {
            resetpwd: {
                login: 'yes',
                url: 'user/resetpwd'
            }
        }
    },
    applyMoney: {
        keepAlive: false,
        isBack: false,
        header: 'back',
        title: '提现申请',
        login:'yes',
        url: {
            applyMoney: {
                login: 'yes',
                url: 'my.withdrawals/applyMoney' //分层控制器
            }
        }
    },
    aliWx: {
        keepAlive: false,
        isBack: false,
        header: 'back',
        title: '支付宝-微信',
        login:'yes',
        url: {
            payList: {
                login: 'yes',
                url: 'article.Article/payList' //分层控制器
            },
            noOnline: {
                login: 'yes',
                url: 'pay.Orders/noOnline' //分层控制器
            }
        }
    },
    bankinfo: {
        keepAlive: false,
        isBack: false,
        header: 'back',
        title: '编辑银行卡',
        login:'yes',
        url: {
            profile: {
                login: 'yes',
                url: 'user/profile' //分层控制器
            },
        }
    },
    enter: {
        keepAlive: true,
        isBack: false,
        header: 'home',
        title: '入口',
        login:'no',
    },
    home: {
        keepAlive: true,
        isBack: false,
        header: 'home',
        title: '首页',
        login:'no',
        url: {
            getHome: {
                login: 'no',
                url: 'game.home/getHome' //分层控制器
            },
            getAllGameInfo: {
                login: 'no',
                url: 'game.home/getAllGameInfo' //分层控制器
            },
            login: {
                login: 'yes',
                url: 'qipai.qipai/login' //分层控制器
            }
        }
    },
    bet: {
        keepAlive: true,
        isBack: false,
        header: 'noback',
        title: '投注大厅',
        login:'no',
        url: {
            getCateAndGame: {
                login: 'no',
                url: 'game.home/getCateAndGame' //分层控制器
            }
        }
    },
    card: {
        keepAlive: true,
        isBack: false,
        header: 'noback',
        title: '棋牌大厅',
        login:'no',
        url: {
            getQipai: {
                login: 'no',
                url: 'game.home/getQipai' //分层控制器
            },
            login: {
                login: 'yes',
                url: 'qipai.qipai/login' //分层控制器
            },
        }
    },
    play: {
        keepAlive: false,
        isBack: false,
        header: 'play',
        title: '投注大厅',
        login:'no',
        url: {
            asyncNextAndPrev: {
                login: 'no',
                url: 'game.bet/asyncNextAndPrev' //分层控制器
            },
            asyncSubmitData: {
                login: 'yes',
                url: 'game.bet/asyncSubmitData'
            },
            getRule: {
                login: 'no',
                url: 'game.home/getRule'
            }
        }
    },
    history: {
        keepAlive: false,
        isBack: false,
        header: 'noback',
        title: '开奖信息',
        login:'no',
        url: {
            listRecord: {
                login: 'no',
                url: 'game.Record/listRecord' //分层控制器
            },
        }
    },
    betHistory: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '投注记录',
        login:'yes',
        url: {
            orderList: {
                login: 'yes',
                url: 'game.Orders/orderList' //分层控制器
            },
        }
    },
    proxy: {
        keepAlive: true,
        isBack: false,
        header: 'personHeader',
        title: '代理中心',
        login:'no',
        url: {
            getBanner: {
                login: 'no',
                url: 'proxy.proxy/getBanner' //分层控制器
            },
            reply: {
                login: 'yes',
                url: 'proxy.proxy/reply' //分层控制器
            }
        }
    },
    proxy_desc: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '代理说明',
        login:'yes',
        url: {
            getProxyDesc: {
                login: 'no',
                url: 'proxy.proxy/getProxyDesc' //分层控制器
            },

        }
    },
    proxy_return: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '返点明细',
        login:'yes',
        url: {
            getReturnList: {
                login: 'yes',
                url: 'proxy.proxy/getReturnList' //分层控制器
            },

        }
    },
    proxy_report: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '代理报表',
        login:'yes',
        url: {
            report: {
                login: 'yes',
                url: 'proxy.proxy/report' //分层控制器
            },

        }
    },
    proxy_open_account: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '下级开户',
        login:'yes',
        url: {
            createRequest: {
                login: 'yes',
                url: 'proxy.proxy/createRequest' //分层控制器
            },
            getRqs: {
                login: 'yes',
                url: 'proxy.proxy/getRqs'
            },
            dl: {
                login: 'yes',
                url: 'proxy.proxy/dl'
            }
        }
    },
    proxy_users: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '下级盈亏',
        login:'yes',
        url: {
            users: {
                login: 'yes',
                url: 'proxy.proxy/users' //分层控制器
            },

        }
    },
    proxy_detail: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '投注详情',
        login:'yes',
        url: {
            orderList: {
                login: 'yes',
                url: 'proxy.proxy/orderList' //分层控制器
            },
        }
    },
    account: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '账户明细',
        login:'yes',
        url: {
            account: {
                login: 'yes',
                url: 'my.account/account' //分层控制器
            },
        }
    },
    my_return: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '打码反馈',
        login:'yes',
        url: {
            getReturn: {
                login: 'yes',
                url: 'my.account/getReturn' //分层控制器
            },
        }
    },
    translate: {
        keepAlive: false,
        isBack: false,
        header: 'personHeader',
        title: '额度转化',
        login:'yes',
        url: {
            getCates: {
                login: 'no',
                url: 'qipai.qipai/getCates' //分层控制器
            },
            getBalance: {
                login: 'yes',
                url: 'qipai.qipai/getBalance' //分层控制器
            },
            login: {
                login: 'yes',
                url: 'qipai.qipai/login' //分层控制器
            },
            enter: {
                login: 'yes',
                url: 'qipai.qipai/enter' //分层控制
            }
        }
    },
    recharge: {
        keepAlive: true,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '在线充值',
        login:'yes',
        url: {
            getAllPay: {
                login: 'yes',
                url: 'pay.orders/getAllPay'
            }
        }
    },
    rechargeItem: {
        keepAlive: false,  //是否保持缓存
        isBack: true,     //是前进还是后退
        header: 'personHeader',
        title: '在线充值',
        login:'yes',
        url: {
            noOnline: {
                login: 'yes',
                url: 'pay.orders/noOnline'
            },
            paySend: {
                login: 'yes',
                url: 'pay.pay/paySend'
            }
        }
    },
    activity: {
        keepAlive: true,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '优惠活动',
        login:'no',
        url: {
            listActivity: {
                login: 'yes',
                url: 'game.activity/listActivity'
            }
        }
    },
    activity_item: {
        keepAlive: false,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '优惠活动',
        login:'no',
        url: {
            activityDetail: {
                login: 'no',
                url: 'game.activity/activityDetail'
            }
        }
    },
    safe_center: {
        keepAlive: false,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '安全中心',
        login:'yes',
        url: {
            resetpwd: {
                login: 'yes',
                url: 'user/resetpwd'
            },
            resetPay: {
                login: 'yes',
                url: 'user/resetPay'
            },
            profile: {
                login: 'yes',
                url: 'user/profile' //分
            },
        }
    },
    todaymoney: {
        keepAlive: false,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '今日盈亏',
        login:'yes',
        url: {
            todayMoney: {
                login: 'yes',
                url: 'my.account/todayMoney'
            }
        }
    },
    qipaihistory: {
        keepAlive: false,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '棋牌历史',
        login:'yes',
        url: {
            qipaihistory: {
                login: 'yes',
                url: 'qipai.qipai/qipaihistory'
            }
        }
    },
    rechargehistory: {
        keepAlive: false,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '充值历史',
        login:'yes',
        url: {
            recharge: {
                login: 'yes',
                url: 'pay.pay/recharge'
            }
        }
    },
    withdrawshistory: {
        keepAlive: false,  //是否保持缓存
        isBack: false,     //是前进还是后退
        header: 'personHeader',
        title: '提现记录',
        login:'yes',
        url: {
            getList: {
                login: 'yes',
                url: 'my.withdrawals/getList'
            }
        }
    },

    public: {
        keepAlive: false,
        isBack: false,
        header: 'no',
        title: '公用方法不用再路由中获取',
        login:'no',
        url: {
            getAllGameInfo: {
                login: 'no',
                url: 'game.home/getAllGameInfo' //分层控制器
            },
            getUserInfo: {
                login: 'yes',
                url: 'user/getUserInfo' //分层控制器
            }
        }
    }

}

export {
    pageConfig
}